#include <iostream>

using std::cout;
using std::endl;

int
main(int argc, char **argv)
{
    for (int row = 1; row <= 7; ++row)
    {
        int cols = 4 - row;
        cols *= (cols < 0 ? -1 : 1);
        cols = 4 - cols;
        
        for (int col = 1; col <= cols; ++col)
        {
            cout << '#';
        }

        cout << endl;
    }
}
